

#include "acc_utils.h"
#include <stdio.h>

void set_deviceptr(size_t *iarr,size_t iptr,size_t start,size_t end, size_t pitch) {
#pragma acc kernels loop present(iarr)
  for (size_t i = start; i < end; i++)
  {
    iarr[i] = iptr+(pitch*i);
  }
}
